package com.rom.array;

public class test {
    public static void main(String[] args) {

        double[][] doubles = new double[2][2];
        doubles[0][0] = 1;
        doubles[0][1] = 1;
        doubles[1][0] = 1;
        doubles[1][1] = 0;
        System.out.println(Is0rZero(doubles));
    }
    
    //是否有一行都为0
    public static boolean Is0rZero(double[][] vs){
        for (int i = 0; i < vs.length ; i++) {
            boolean flag = false;
            for (int j = 0; j < vs[i].length;j++) {
                if(vs[i][j] != 0){
                    flag = true;
                }
            }
            if(!flag){
                return true;
            }
        }
        return false;
    }
}
